package com.limanyik.family.security.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.limanyik.family.common.entity.BasisMenus;
import com.limanyik.family.security.entity.dto.UserInfoDto;
import com.limanyik.family.security.mapper.BasisMenusMapper;
import com.limanyik.family.security.service.BasisMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 基础_菜单表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-11-24
 */
@Service
public class BasisMenusServiceImpl extends ServiceImpl<BasisMenusMapper, BasisMenus> implements BasisMenusService {

    @Autowired
    BasisMenusMapper basisMenusMapper;

    @Override
    public List<BasisMenus> getUserMenusByUserId(UserInfoDto userInfoDto) {
        return basisMenusMapper.getUserMenusByUserId(userInfoDto);
    }
}
